package tcm.com.gistone.database.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tcm.com.gistone.database.entity.Confidence;
import tcm.com.gistone.database.entity.Special;

import java.util.List;

public interface SpecialMapper {
    int deleteByPrimaryKey(Long specialId);

    int insert(Special record);

    int insertSelective(Special record);

    Special selectByPrimaryKey(Long specialId);

    int updateByPrimaryKeySelective(Special record);

    int updateByPrimaryKey(Special record);

    @Select("select * from tb_special")
    @ResultMap("tcm.com.gistone.database.mapper.SpecialMapper.BaseResultMap")
    List<Special> selectAll();



    @Select("select * from tb_special where status = 1")
    @ResultMap("tcm.com.gistone.database.mapper.SpecialMapper.BaseResultMap")
    List<Special> getRefreshAble();
}